package com.visikard.request;

import com.visikard.application.APIURL;
import com.visikard.system.VKregisterConnects;
import com.visikard.utility.Utils;

public class DetailRedeemRequest extends BaseRequest {
	
	public String getDetailsRedeemGiftKard(final long merchantId, final long redeemedTransactionId, final long purchaseTransactionId) throws Exception{
		String url = VKregisterConnects.getApiContextPathHttps() + APIURL.GET_GIFT_KARDS_REDEEMED_HISTORY_DETAIL
				+ merchantId + "/" + redeemedTransactionId + "/" + purchaseTransactionId;
		
		String result = Utils.getConnectValueFromURL(url);
		return result;
	}
	
	public String getDetailsRedeemCouponKard(final long merchantId, final long redeemedTransactionId, final long purchaseTransactionId) throws Exception {
		String url = VKregisterConnects.getApiContextPathHttps() + APIURL.GET_COUPON_KARDS_REDEEMED_HISTORY_DETAIL
				+ merchantId + "/" + redeemedTransactionId + "/" + purchaseTransactionId;
		
		String result = Utils.getConnectValueFromURL(url);
		return result;
	}
	
	public String getDetailsRedeemPunchKard(final long merchantId, final long redeemedTransactionId, final long purchaseTransactionId) throws Exception {
		
		String url = VKregisterConnects.getApiContextPathHttps() + APIURL.GET_PUNCH_KARDS_REDEEMED_HISTORY_DETAIL
				+ merchantId + "/" + redeemedTransactionId + "/" + purchaseTransactionId;
		
		String result = Utils.getConnectValueFromURL(url);
		return result;
	}	
}
